package com.kuang.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/*Ribbon和Eureka整合以后,客户端可通过服务名直接调用服务,不用关心ip地址和端口号*/
@SpringBootApplication
@EnableEurekaClient // eureka客户端启动注解
@EnableFeignClients(basePackages = {"com.kuang.springcloud"}) // Feign扫描你要进行的服务在哪
public class FeignDeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(FeignDeptConsumer_80.class, args);
    }
}
